<template>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item>
        <img :src="goodlistimg.img1" alt="">
    </van-swipe-item>
    <van-swipe-item>
        <img :src="goodlistimg.img2" alt="">
    </van-swipe-item>
    <van-swipe-item>
        <img :src="goodlistimg.img3" alt="">
    </van-swipe-item>
    <van-swipe-item>
        <img :src="goodlistimg.img4" alt="">
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
    data(){
        return{
            goodlistimg:{}
        }
    },
    props:["goodlist"],
    watch:{
        goodlist:{
            handler:function(newval){
                this.goodlistimg = newval
            }
        }
    },
    created(){
        
    }
};
</script>

<style>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
}
.my-swipe img{
    width:100%;
    height:300px;
}
</style>